<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <form class="editForm" action="${saveUrl}" method="post" responseType="JSON" role="form"
              id="editForm_${serializeNum}"
              data-bv-submitButtons="#editFormSubmitBtn_${serializeNum}"
              data-bv-message="This value is not valid"
              data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
              data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
              data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
            <input type="hidden" name="id" value="${editEntity.id}">
            <input type="radio" name="attendClassId" value="${attendClassId}">
            <#if (true && editModel=='add')||(true && editModel=='edit')>

                <div class="col-xm-12 col-sm-6 col-lg-12 margin-top-20 margin-bottom-20">
                    <div class="form-group text-align-center">
                        <input type="radio" name="zxc" style="margin-right: 5px;opacity: 1;position: static;" class="checkedFalse" checked value="3">
                        <label style="margin-right: 10px">退单节班</label>
                        <input type="radio" name="zxc" style="margin-right: 5px;opacity: 1;position: static;" class="checkedTrue" value="4">
                        <label style="margin-right: 10px">退全部全部班级</label>
                    </div>
                    <div class="btn-toolbar" role="toolbar" style="margin: 50px 10px 10px 10px;">
                        <div class="btn-group">
                            <button type="button" class="btn btn-default"><input type="checkbox" style="position: static;opacity: 1;margin: 0;width: 12px;height: 12px;margin: 3px 0;"></button>
                            <button type="button" class="btn btn-default disabled">01</button>
                            <button type="button" class="btn btn-default disabled">2017年03月01日</button>
                            <button type="button" class="btn btn-default disabled">周二</button>
                        </div>
                        <div class="btn-group">
                            <button type="button" class="btn btn-default"><input type="checkbox" style="position: static;opacity: 1;margin: 0;width: 12px;height: 12px;margin: 3px 0;"></button>
                            <button type="button" class="btn btn-default disabled">01</button>
                            <button type="button" class="btn btn-default disabled">2017年03月01日</button>
                            <button type="button" class="btn btn-default disabled">周二</button>
                        </div>
                        <div class="btn-group">
                            <button type="button" class="btn btn-default"><input type="checkbox" style="position: static;opacity: 1;margin: 0;width: 12px;height: 12px;margin: 3px 0;"></button>
                            <button type="button" class="btn btn-default disabled">01</button>
                            <button type="button" class="btn btn-default disabled">2017年03月01日</button>
                            <button type="button" class="btn btn-default disabled">周二</button>
                        </div>
                    </div>
                    <div class="btn-toolbar" role="toolbar" style="margin: 10px;">
                        <div class="btn-group">
                            <input class="checkboxs" type="checkbox" style="position: static;opacity: 1;margin: 0;width: 12px;height: 12px;margin: 3px 0;"> 全选
                        </div>
                    </div>
                </div>
            </#if>

            <div class="col-sm-12 text-align-center">
                <button style="width: 80px;margin-right: 20px" type="submit" class="btn btn-blue" id="editFormSubmitBtn_${serializeNum}">保存
                </button>
                <input style="width: 80px;" type="button" class="btn btn-blue" data-dismiss="modal" value="返回"
                       />

            </div>
        </form>
    </div>
</div>
<script src="assets/js/validation/bootstrapValidator_init.js"></script>
<script>
    $(".selectpicker_${serializeNum}").select2();

    $(".checkboxs").change(function () {
        if ($(this).is(':checked')) {
            $(".btn-group input").prop("checked", true);
        } else {
            $(".btn-group input").prop("checked", false);
        }
    })

    $(".checkedFalse").change(function () {
        $(".btn-group input").prop("checked", false);
    })

    $(".checkedTrue").change(function () {
        $(".btn-group input").prop("checked", true);
    })
</script>